﻿using KalevaAalto.DataPart.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KalevaAalto.DataPart.Models
{
    public class Border : IBorder
    {
        public BorderStyle Left { get; set; } = BorderStyle.None;
        public BorderStyle Right { get; set; } = BorderStyle.None;
        public BorderStyle Top { get; set; } = BorderStyle.None;
        public BorderStyle Bottom { get; set; } = BorderStyle.None;


    }


    public interface IBorder
    {

        public BorderStyle Left { get; set; } 
        public BorderStyle Right { get; set; } 
        public BorderStyle Top { get; set; } 
        public BorderStyle Bottom { get; set; } 

        public void Parse(IBorder border)
        {
            Left = border.Left;
            Right = border.Right;
            Top = border.Top;
            Bottom = border.Bottom;
        }
    }
}
